package com.liljhu30.microdianping.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liljhu30.microdianping.dto.LoginFormDTO;
import com.liljhu30.microdianping.dto.Result;
import com.liljhu30.microdianping.entity.User;
import jakarta.servlet.http.HttpSession;

/**
 * @author LilJHu
 * @create 2023/12/15
 * @desc 用户服务层接口
 **/
public interface IUserService extends IService<User> {

    /**
     * 发送手机短信验证码
     *
     * @param phone
     * @param session
     * @return
     */
    Result sendCode(String phone, HttpSession session);

    /**
     * 用户登录或注册
     *
     * @param loginForm
     * @param session
     * @return
     */
    Result login(LoginFormDTO loginForm, HttpSession session);
//
//    Result sign();
//
//    Result signCount();
}
